package com.atwisdom.star.common.actionType.modelClass.resource;

/**************************************************************************************
 * 方法枚举
 **************************************************************************************/
public enum ResourceActionType {
    //region ******************对应ResourceModelBslServiceImpl中的方法*urlPath = "/resource/model"*****************
    RESOURCE_MODEL_QUERY_ALL_INFO("QUERY_ALL_INFO", "queryAllInfo", "查询全部摘要"),
    RESOURCE_MODEL_QUERY_ALL_INFO_BY_PAGE("QUERY_ALL_INFO_BY_PAGE", "queryAllInfoByPage", "分页查询全部摘要"),
    RESOURCE_MODEL_QUERY_ALL("QUERY_ALL", "queryAll", "查询全部数据"),
    RESOURCE_MODEL_LIST_ALL_BY_PAGE("LIST_ALL_BY_PAGE", "listAllByPage", "分页查询全部数据（通用）"),
    RESOURCE_MODEL_QUERY("QUERY", "query", "按条件查询模型"),
    RESOURCE_MODEL_QUERY_INFO_BY_PAGE("QUERY_INFO_BY_PAGE", "queryInfoByPage", "按条件分页查询模型摘要"),
    RESOURCE_MODEL_QUERY_BY_PAGE("QUERY_BY_PAGE", "queryByPage", "按条件分页查询模型"),
    RESOURCE_MODEL_QUERY_ALL_VERSION_INFO_BY_PAGE("QUERY_ALL_VERSION_INFO_BY_PAGE", "queryAllVersionInfoByPage", "分页查询全部版本摘要（通用）"),
    RESOURCE_MODEL_QUERY_VERSION_INFO_BY_PAGE("QUERY_VERSION_INFO_BY_PAGE", "queryVersionInfoByPage", "分页查询版本摘要（通用）"),
    RESOURCE_MODEL_QUERY_VERSION("QUERY_VERSION", "queryVersion", "按条件和版本查询（通用）"),
    RESOURCE_MODEL_SET_PUBLISH("SET_PUBLISH", "setPublish", "设置版本有效"),
    RESOURCE_MODEL_SET_UN_PUBLISH("SET_UN_PUBLISH", "setUnPublish", "设置版本无效"),
    RESOURCE_MODEL_UPGRADE("UPGRADE", "upgrade", "版本升级"),
    RESOURCE_MODEL_ADD("ADD", "add", "添加新模型"),
    RESOURCE_MODEL_CLONE("CLONE", "clone", "拷贝模型"),
    RESOURCE_MODEL_UPDATE_CLASSNAME("UPDATE_CLASSNAME", "updateClassName", "更新模型类型和类名"),
    RESOURCE_MODEL_UPDATE_BY_ID("UPDATE_BY_ID", "updateById", "更新模型属性字段"),
    RESOURCE_MODEL_DELETE_BY_IDS("DELETE_BY_IDS", "deleteByIds", "按ids删除模型"),
    RESOURCE_MODEL_DELETE_BY_CLASSNAME("DELETE_BY_CLASSNAME", "deleteByClassName", "接类名删除"),
    RESOURCE_MODEL_DELETE_BY_CLASSNAMES("DELETE_BY_CLASSNAMES", "deleteByClassNames", "按类名列表批量删除"),
    RESOURCE_MODEL_REPEAL_BY_IDS("REPEAL_BY_IDS", "repealByIds", "废除模型"),
    RESOURCE_MODEL_REPEAL_BY_CLASSNAMES("REPEAL_BY_CLASSNAMES", "repealByClassNames", "批量废除"),
    //endregion

    //region ******************对应ResourceInstanceBslServiceImpl中的方法*urlPath = "/resource/instance"*****************
    RESOURCE_INSTANCE_QUERY_ALL_INFO("QUERY_ALL_INFO", "queryAllInfo", "查询全部摘要"),
    RESOURCE_INSTANCE_QUERY_ALL_INFO_BY_PAGE("QUERY_ALL_INFO_BY_PAGE", "queryAllInfoByPage", "分页查询全部摘要"),
    RESOURCE_INSTANCE_QUERY_ALL("QUERY_ALL", "queryAll", "查询全部数据"),
    RESOURCE_INSTANCE_LIST_ALL_BY_PAGE("LIST_ALL_BY_PAGE", "listAllByPage", "分页查询全部数据（通用）"),
    RESOURCE_INSTANCE_QUERY("QUERY", "query", "按条件查询模型实例"),
    RESOURCE_INSTANCE_QUERY_INFO_BY_PAGE("QUERY_INFO_BY_PAGE", "queryInfoByPage", "按条件分页查询模型实例摘要"),
    RESOURCE_INSTANCE_QUERY_BY_PAGE("QUERY_BY_PAGE", "queryByPage", "按条件分页查询模型实例"),
    RESOURCE_INSTANCE_QUERY_BY_IDS("QUERY_BY_IDS", "queryByIds", "按id数组查询模型实例"),
    RESOURCE_INSTANCE_ADD("ADD", "add", "添加新模型"),
    RESOURCE_INSTANCE_ADD_AND_INIT_WEB("ADD_AND_INIT_WEB", "addAndInitWeb", "添加新模型并初始化web等数据"),
    RESOURCE_INSTANCE_UPDATE_BY_ID("UPDATE_BY_ID", "updateById", "更新实例属性字段"),
    RESOURCE_INSTANCE_UPDATE_BY_IDS("UPDATE_BY_IDS", "updateByIds", "更新实例属性字段"),
    RESOURCE_INSTANCE_UPDATE_CLASSNAME("UPDATE_CLASSNAME", "updateClassName", "更新模型类型和类名"),
    RESOURCE_INSTANCE_DELETE_BY_IDS("DELETE_BY_IDS", "deleteByIds", "按ids删除实例"),
    RESOURCE_INSTANCE_DELETE_BY_CLASSNAME("DELETE_BY_CLASSNAME", "deleteByClassName", "接类名删除"),
    RESOURCE_INSTANCE_DELETE_BY_CLASSNAMES("DELETE_BY_CLASSNAMES", "deleteByClassNames", "按类名列表批量删除"),
    RESOURCE_INSTANCE_REPEAL_BY_IDS("REPEAL_BY_IDS", "repealByIds", "废除模型实例"),
    RESOURCE_INSTANCE_REPEAL_BY_CLASSNAMES("REPEAL_BY_CLASSNAMES", "repealByClassNames", "批量废除");
    //endregion



    private final String code;
    private final String methodName;
    private final String description;

    public String getCode() {
        return code;
    }

    public String getMethodName() {
        return methodName;
    }

    public String getDescription() {
        return description;
    }

    ResourceActionType(String code, String methodName, String description) {
        this.code = code;
        this.methodName = methodName;
        this.description = description;
    }
}
